package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.NocarProd;
import com.sq.partner.manager.util.Page;

public interface ITradNoCarProdDao extends BaseDao {
	
	Page<NocarProd> queryPage(Page<NocarProd> page) throws SQLException;

	Page<NocarProd> queryPageForNocarInsure(Page<NocarProd> page) throws SQLException;
	
    NocarProd findMaxRiskProdIndex(NocarProd noCarProd)throws SQLException;

	void saveNoCarTradProd(NocarProd noCartradProd) throws Exception;

	NocarProd findMaxNocarTradProdCode(NocarProd noCartradProd)throws SQLException;

	NocarProd queryNocarTradProdInstById(String tradProdCode)throws SQLException ;
	
	void updateNocarProd(NocarProd noCarProd)throws Exception ;
	
	void deleteNocarProd(String prodCode)throws Exception ;
	
    boolean isExistProdPlan(String prodCode) throws SQLException;

    List<Map<String, Object>> searchNoCarProdsByprodCode(Map<String, Object> map) throws SQLException;
}
